/**
 * Created by asen on 2015/10/14.
 */
package com.shoes.service.impl;

import com.shoes.dao.TestDAO;
import com.shoes.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("testService")
public class TestServiceImpl implements TestService {

    private TestDAO testDAO;

    @Override
    public String testGetUserName(long id) {
        String result = null;
        try {
            result = testDAO.getNameById(id);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }

    public TestDAO getTestDAO() {
        return testDAO;
    }
    @Autowired
    public void setTestDAO(TestDAO testDAO) {
        this.testDAO = testDAO;
    }
}
